class SetDefaultColumnSectionIdToNull < ActiveRecord::Migration
  def self.up
#     Setting the default value of section_id to
#     null instead of 0, it makes a lot more sense for
#     orphan articles
    change_column :articles, :section_id, :integer, :default=>nil, :null=>true
  end

  def self.down
    change_column :articles, :section_id, :default=>0
  end
end
